import config from "@/config"
import http from "@/utils/request"

export default {

	/**
	 * 登陆接口
	 */
	login: {
		url: `${config.API_URL}/backstage/auth-api/tourist/login`,
		name: "登录获取TOKEN",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},

	/**
	 * 退出登陆
	 */
	logout: {
		url: `${config.API_URL}/backstage/auth-api/tourist/logout`,
		name: "退出登陆",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},

	/**
	 * 发送邮箱验证码（用户重置密码）
	 */
	getEmailVerifyCode: {
		url: `${config.API_URL}/backstage/auth-api/tourist/getEmailVerifyCode`,
		name: "发送邮箱验证吗",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},

	/**
	 * 重置密码
	 */
	resetPassword: {
		url: `${config.API_URL}/backstage/auth-api/tourist/resetPassword`,
		name: "重置密码",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},

	/**
	 * 查询系统参数
	 */
	getSystemConfigureInfo: {
		url: `${config.API_URL}/backstage/auth-api/tourist/systemConfigure/info`,
		name: "查询系统参数",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},

}
